home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
mail
/
Mutt089src.lha
/
Mutt-0.89i-AMIGA
/
src
/
gen_defs
< prev
next >
Wrap
Text File
|
1998-01-28
|
503b
|
32 lines
#!/bin/sh
echo '/* Automatically generated by gen_defs. Do not edit! */'
echo ''
for mode in help defs; do
case $mode in
help)
echo "#ifdef HELP_C"
echo "const char *HelpStrings[] = {"
expr='s;^[^ ]* *\(.*\); \1,;'
;;
*)
echo "enum {"
expr='s;^\([^ ]*\).*; \1,;'
;;
esac
for i in $*; do
sed -e "$expr" < $i
done
if test $mode = help; then
echo ' NULL'
else
echo ' OP_MAX'
fi
echo "};"
if test $mode = help; then
echo "#endif /* HELP_C */"
echo ''
fi
done